export default {
  date: {
    title: '数据总括',
    path: '/service/dw/cc/dialog/day',
    path_monthly: '/service/dw/cc/dialog/month',
    x_axis: 'period',
    timerange: 'period',
    post_data: {
      pageSize: 90
    },
    lines: [{
      code: 'dial_out_count',
      name: '外呼总数',
      label_offset: [0, -12]
    }, {
      code: 'dial_out_success_count',
      name: '外呼成功总数',
      show: true,
      attach: 0
    }, {
      code: 'dial_out_success_rate',
      name: '外呼成功率',
      type: 'line',
      unit: '%',
      average: true
    }],
    fields: [{
      code: 'period',
      name: '月份',
      type: 'date'
    }, {
      code: 'dial_out_count',
      name: '外呼总数'
    }, {
      code: 'dial_out_success_count',
      name: '外呼成功总数'
    }, {
      code: 'dial_out_success_rate',
      name: '外呼成功率(%)'
    }, {
      code: 'call_len_count',
      name: '总时长(分)'
    }, {
      code: 'av_call_len_count',
      name: '平均时长(分)'
    }]
  },
  area: {
    title: '地区统计',
    x_axis: 'org_id',
    path: 'service/dw/cc/dialog/group/custom',
    post_data: {
      group_mode: 'org_id'
    },
    lines: [{
      code: 'call_count',
      name: '呼出总数'
    }, {
      code: 'call_time_len',
      name: '总时长'
    }, {
      code: 'rate',
      name: '成功率',
      type: 'line'
    }],
    fields: [{
      code: 'call_count',
      name: '呼出总数'
    }, {
      code: 'call_time_len',
      name: '总时长'
    }, {
      code: 'org_id',
      name: '地区',
      default: '其他'
    }, {
      code: 'avg',
      name: '平均时长'
    }, {
      code: 'freq',
      name: '呼出频率'
    }, {
      code: 'rate',
      name: '成功率'
    }],
    drill: [{
      title: '小组统计',
      x_axis: 'org_id',
      path: 'service/dw/cc/dialog/group/custom',
      post_data: {
        group_mode: 'collector_id'
      },
      param: {
        collector_id: 'collector_id'
      },
      lines: [{
        code: 'call_count',
        name: '呼出总数'
      }, {
        code: 'call_time_len',
        name: '总时长'
      }, {
        code: 'rate',
        name: '成功率',
        type: 'line'
      }],
      fields: [{
        code: 'call_count',
        name: '呼出总数'
      }, {
        code: 'call_time_len',
        name: '总时长'
      }, {
        code: 'org_id',
        name: '地区',
        default: '其他'
      }, {
        code: 'avg',
        name: '平均时长'
      }, {
        code: 'freq',
        name: '呼出频率'
      }, {
        code: 'rate',
        name: '成功率'
      }]
    }]
  },
  product: {
    title: '委托方统计',
    x_axis: 'product_type',
    path: 'service/dw/cc/dialog/drill/custom',
    post_data: {
      group_mode: 'asset_tenantry_id'
    },
    lines: [{
      code: 'call_count',
      name: '呼出总数'
    }, {
      code: 'call_time_len',
      name: '总时长'
    }, {
      code: 'rate',
      name: '成功率',
      type: 'line'
    }],
    fields: [{
      code: 'product_type',
      name: '产品',
      default: '其他'
    }, {
      code: 'dial_out_count',
      name: '外呼总数'
    }, {
      code: 'dial_out_success_count',
      name: '外呼成功总数'
    }, {
      code: 'dial_out_success_rate',
      name: '外呼成功率(%)'
    }, {
      code: 'call_len_count',
      name: '总时长(分)'
    }, {
      code: 'av_call_len_count',
      name: '平均时长(分)'
    }],
    drill: [{
      title: '产品统计',
      x_axis: 'product_type',
      path: 'service/dw/cc/dialog/group/custom',
      post_data: {
        group_mode: 'product_type'
      },
      param: {
        asset_tenantry_id: 'asset_tenantry_id'
      },
      lines: [{
        code: 'call_count',
        name: '呼出总数'
      }, {
        code: 'call_time_len',
        name: '总时长'
      }, {
        code: 'rate',
        name: '成功率',
        type: 'line'
      }],
      fields: [{
        code: 'product_type',
        name: '产品',
        default: '其他'
      }, {
        code: 'dial_out_count',
        name: '外呼总数'
      }, {
        code: 'dial_out_success_count',
        name: '外呼成功总数'
      }, {
        code: 'dial_out_success_rate',
        name: '外呼成功率(%)'
      }, {
        code: 'call_len_count',
        name: '总时长(分)'
      }, {
        code: 'av_call_len_count',
        name: '平均时长(分)'
      }]
    }]
  }
}
